﻿@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_JuiLayout.cshtml";
}

@section header {}
<div id="layout" class="noNavTab">
        <div id="navTab">
            <h2 class="contentTitle">
                    修改数据字典类别</h2>
            <div class="pageContent">
                <div class="pageFormContent nowrap" layouth="56">
                    @{
                        int id = Utils.StrToInt(ViewData["id"], 0);
                        string rturl = "/SysMenu/List?menu=SysIBClasses&name=list";
                        using (Html.BeginForm("Edit", "OperateTotal", new { id = id, dtnum = (int)Database.Default, name = DencryptHelper.Encrypt("Sys_IBClasses"), url = rturl }, FormMethod.Post, new { @id = "subForm", @class = "pageForm required-validate", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
                        {
                            if (Model != null)
                            {
                                Dictionary<string,object> dic=Model;
                    
                        <dl>
                        <dt>主键id</dt>
                        <dd>
                            @Html.TextBox("t0_Id", dic["id"].ToString(), new { @class = "required digits textInput", maxlength = "25" })
                        </dd>
                    </dl>
                                <dl>
                        <dt>编码：</dt>
                        <dd>
                            @Html.TextBox("t0_No", dic["No"].ToString(), new { @class = " textInput", maxlength = "25" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>名称：</dt>
                        <dd>
                            @Html.TextBox("t0_Name", dic["Name"].ToString(), new { @class = "required textInput", maxlength = "250" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>描述：</dt>
                        <dd>
                            @Html.TextArea("t0_Description", dic["Description"].ToString(), new { @class = " textInput", rows = "5", cols = "80", maxlength = "250" })
                        </dd>
                    </dl>
                    
                    <dl>
                        <dt>&nbsp</dt>
                        <dd style="width:150px">编码</dd>
                        <dd>名称</dd>
                    </dl>
                    <dl>
                        <dt>值1：</dt>
                        <dd>@Html.TextBox("t0_ValueNo1", dic["ValueNo1"].ToString(), new { @class = " textInput", maxlength = "25" })</dd>
                        <dd>@Html.TextBox("t0_ValueName1", dic["ValueName1"].ToString(), new { @class = " textInput", maxlength = "25" })</dd>
                    </dl>
                    <dl>
                        <dt>值2：</dt>
                        <dd>@Html.TextBox("t0_ValueNo2", dic["ValueNo2"].ToString(), new { @class = " textInput", maxlength = "25" })</dd>
                        <dd>@Html.TextBox("t0_ValueName2", dic["ValueName2"].ToString(), new { @class = " textInput", maxlength = "25" })</dd>
                    </dl>
                    <dl>
                        <dt>值3：</dt>
                        <dd>@Html.TextBox("t0_ValueNo3", dic["ValueNo3"].ToString(), new { @class = " textInput", maxlength = "25" })</dd>
                        <dd>@Html.TextBox("t0_ValueName3", dic["ValueName3"].ToString(), new { @class = " textInput", maxlength = "25" })</dd>
                    </dl>
                    <dl>
                        <dt>值4：</dt>
                        <dd>@Html.TextBox("t0_ValueNo4", dic["ValueNo4"].ToString(), new { @class = " textInput", maxlength = "25" })</dd>
                        <dd>@Html.TextBox("t0_ValueName4", dic["ValueName4"].ToString(), new { @class = " textInput", maxlength = "25" })</dd>
                    </dl>
                    <dl>
                        <dt>&nbsp</dt>
                        <dd><div class="buttonActive">
                                <div class="buttonContent">
                                    <button type="submit">
                                        修改</button></div>
                            </div></dd>
                        <dd><a class="button" href='@rturl'><span>返回</span></a></dd>
                    </dl>
                    }
                        }
                        }
                </div>
            </div>
        </div>
    </div>

<link href="../../content/jui-normal.css" rel="stylesheet" type="text/css" />
